package com.moinut.studentattendancemanager;

import com.moinut.studentattendancemanager.config.UserType;

/**
 * @author MOILING
 */
public class UserManager {
    public static String userId;
    public static boolean isManager = false;
    public static UserType userType;

    public static void exit() {
        userId = null;
        isManager = false;
        userType = null;
    }

    public static void setStudent(String studentId) {
        userId = studentId;
        userType = UserType.TYPE_STUDENT;
    }

    public static void setTeacher(String teacherId, boolean manager) {
        userId = teacherId;
        isManager = manager;
        userType = UserType.TYPE_TEACHER;
    }
}
